package updown.dao;

import updown.domain.TaskWrapper;
import updown.domain.TaskWrapperMapperBean;

import java.util.List;

/**
 * <p>Title: ww.kaixin.downupservice.dao </p>
 * <p>Description:to-22-6-1: -  </p>
 *
 * @Author:jiangkaixin
 * @Date:2021/12/23
 * @Version: 1.0
 */
public interface TaskWrapperDao {
    void add(TaskWrapper taskWrapper);

    List<TaskWrapperMapperBean> getByServiceName(String serviceName);

    TaskWrapperMapperBean getByTaskId(String taskId);

    void deleteByTaskId(String taskId);

    TaskWrapperMapperBean getLatestDownUpRecord(String serviceName);
}
